package com.justech.eat.repository;

import com.justech.eat.entity.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @program: eat-service
 * @description: 订单详情
 * @author: feifei.li
 * @create: 2020-05-28 17:25
 **/
@Repository
public interface OrderDetailRepository extends JpaRepository<OrderDetail, Long> {

    OrderDetail findByOrderIdAndType(Long orderId,int type);
}
